<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'coa-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'account'); ?>
		<?php echo $form->textField($model,'account',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'account'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'id'); ?>
		<?php echo $form->dropDownList($model,'id',$model->getCategoryList()); ?>
		<?php echo $form->error($model,'id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'desc1'); ?>
		<?php echo $form->textField($model,'desc1',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'desc1'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'dept'); ?>
		<?php echo $form->textField($model,'dept',array('size'=>2,'maxlength'=>2)); ?>
		<?php echo $form->error($model,'dept'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'div'); ?>
		<?php echo $form->textField($model,'div',array('size'=>2,'maxlength'=>2)); ?>
		<?php echo $form->error($model,'div'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'group'); ?>
		<?php echo $form->textField($model,'group',array('size'=>4,'maxlength'=>4)); ?>
		<?php echo $form->error($model,'group'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'type'); ?>
		<?php echo $form->textField($model,'type',array('size'=>1,'maxlength'=>1)); ?>
		<?php echo $form->error($model,'type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'isdept'); ?>
		<?php echo $form->textField($model,'isdept'); ?>
		<?php echo $form->error($model,'isdept'); ?>
	</div>
<!--
	<div class="row">
		<?php echo $form->labelEx($model,'navbank'); ?>
		<?php echo $form->textField($model,'navbank',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'navbank'); ?>
	</div>-->

	<div class="row">
		<?php echo $form->labelEx($model,'accountsort'); ?>
		<?php echo $form->textField($model,'accountsort',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'accountsort'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'inactive'); ?>
		<?php echo $form->textField($model,'inactive'); ?>
		<?php echo $form->error($model,'inactive'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'accrualvendor'); ?>
		<?php echo $form->textField($model,'accrualvendor',array('size'=>4,'maxlength'=>4)); ?>
		<?php echo $form->error($model,'accrualvendor'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'recondate'); ?>
		<?php echo $form->textField($model,'recondate'); ?>
		<?php echo $form->error($model,'recondate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'reconbeginbal'); ?>
		<?php echo $form->textField($model,'reconbeginbal'); ?>
		<?php echo $form->error($model,'reconbeginbal'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'reconendbal'); ?>
		<?php echo $form->textField($model,'reconendbal'); ?>
		<?php echo $form->error($model,'reconendbal'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'overheadmethod'); ?>
		<?php echo $form->textField($model,'overheadmethod'); ?>
		<?php echo $form->error($model,'overheadmethod'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'wipaccount'); ?>
		<?php echo $form->textField($model,'wipaccount'); ?>
		<?php echo $form->error($model,'wipaccount'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'wipclosingaccountid'); ?>
		<?php echo $form->textField($model,'wipclosingaccountid',array('size'=>36,'maxlength'=>36)); ?>
		<?php echo $form->error($model,'wipclosingaccountid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'parentid'); ?>
		<?php echo $form->dropDownList($model,'parentid', $model->getCOAList()); ?>		
		<?php echo $form->error($model,'parentid'); ?>
	</div>

	<div class="row_buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->